package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @author ：Hachimen
 * @date ：Created in 2021/9/3 18:31
 * @description：登陆跳转控制器
 * @modified By：
 * @version:
 */
@Controller
public class LoginController {
    @GetMapping("login.html")
    public String login(HttpServletRequest request){
        String originalUrl = request.getParameter("originalUrl");
        request.setAttribute("originalUrl",originalUrl);
        return "login";
    }

}
